<script type="text/x-handlebars-template" id="shopCategory">
  	<header class="wst-nav">
      <div class="am-g">
        <div class="am-u-sm-2">
          <a href="#" class="wst-header-left"><i class="am-icon-angle-left am-icon-sm"></i></a>
        </div>
        <div class="am-u-sm-8 wst-nav-center">
          <span class="wst-header-center">本店商品分类</span>
        </div>
        <div class="am-u-sm-2">&nbsp;</div>
      </div>
    </header> 

  	<div class="shopcat-container">
        <div class="shopcatcontent">
      		{{#each category}}
          <div class="am-u-sm-12 shopcat1-div">
            <span class="shopcat2-title">{{catName}}</span>
            <ul class="am-avg-sm-3">
  					  {{#each children}}
                <li class="shopcat-li"><a class="shopcat-a shopcat3-a" href="javascript:void(0);" onclick="javascript:toShopGoods({{../catId}}, {{catId}});">{{catName}}</a></li>
  					  {{/each}}
  					  {{#list children.length}}
  						  <li class="shopcat-li"><a class="shopcat-a shopcat3-a" href="javascript:void(0);">&nbsp;</a></li>
  					  {{/list}}
            </ul>
          </div>
      		{{/each}}
        </div>
    </div>
</script>